package com.jindy.module.returnreceiptorder.service.impl;

import java.util.List;

import com.jindy.module.returnreceiptorder.domain.ReturnReceiptOrderMechine;
import com.jindy.module.returnreceiptorder.mapper.ReturnReceiptOrderMechineMapper;
import com.jindy.module.returnreceiptorder.service.IReturnReceiptOrderMechineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 回货入库单关联机器Service业务层处理
 *
 * @author ruoyi
 * @date 2022-10-21
 */
@Service
public class ReturnReceiptOrderMechineServiceImpl implements IReturnReceiptOrderMechineService
{
    @Autowired
    private ReturnReceiptOrderMechineMapper returnReceiptOrderMechineMapper;

    /**
     * 查询回货入库单关联机器
     *
     * @param id 回货入库单关联机器主键
     * @return 回货入库单关联机器
     */
    @Override
    public ReturnReceiptOrderMechine selectReturnReceiptOrderMechineById(Long id)
    {
        return returnReceiptOrderMechineMapper.selectReturnReceiptOrderMechineById(id);
    }

    /**
     * 查询回货入库单关联机器列表
     *
     * @param returnReceiptOrderMechine 回货入库单关联机器
     * @return 回货入库单关联机器
     */
    @Override
    public List<ReturnReceiptOrderMechine> selectReturnReceiptOrderMechineList(ReturnReceiptOrderMechine returnReceiptOrderMechine)
    {
        return returnReceiptOrderMechineMapper.selectReturnReceiptOrderMechineList(returnReceiptOrderMechine);
    }

    /**
     * 新增回货入库单关联机器
     *
     * @param returnReceiptOrderMechine 回货入库单关联机器
     * @return 结果
     */
    @Override
    public int insertReturnReceiptOrderMechine(ReturnReceiptOrderMechine returnReceiptOrderMechine)
    {
        return returnReceiptOrderMechineMapper.insertReturnReceiptOrderMechine(returnReceiptOrderMechine);
    }

    /**
     * 修改回货入库单关联机器
     *
     * @param returnReceiptOrderMechine 回货入库单关联机器
     * @return 结果
     */
    @Override
    public int updateReturnReceiptOrderMechine(ReturnReceiptOrderMechine returnReceiptOrderMechine)
    {
        return returnReceiptOrderMechineMapper.updateReturnReceiptOrderMechine(returnReceiptOrderMechine);
    }

    /**
     * 批量删除回货入库单关联机器
     *
     * @param ids 需要删除的回货入库单关联机器主键
     * @return 结果
     */
    @Override
    public int deleteReturnReceiptOrderMechineByIds(Long[] ids)
    {
        return returnReceiptOrderMechineMapper.deleteReturnReceiptOrderMechineByIds(ids);
    }

    /**
     * 删除回货入库单关联机器信息
     *
     * @param id 回货入库单关联机器主键
     * @return 结果
     */
    @Override
    public int deleteReturnReceiptOrderMechineById(Long id)
    {
        return returnReceiptOrderMechineMapper.deleteReturnReceiptOrderMechineById(id);
    }
}
